﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001173 RID: 4467
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetLineupNameScRsp : IMessage<SetLineupNameScRsp>, IMessage, IEquatable<SetLineupNameScRsp>, IDeepCloneable<SetLineupNameScRsp>, IBufferMessage
	{
		// Token: 0x17003882 RID: 14466
		// (get) Token: 0x0600C7E8 RID: 51176 RVA: 0x0021AF40 File Offset: 0x00219140
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetLineupNameScRsp> Parser
		{
			get
			{
				return SetLineupNameScRsp._parser;
			}
		}

		// Token: 0x17003883 RID: 14467
		// (get) Token: 0x0600C7E9 RID: 51177 RVA: 0x0021AF47 File Offset: 0x00219147
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetLineupNameScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003884 RID: 14468
		// (get) Token: 0x0600C7EA RID: 51178 RVA: 0x0021AF59 File Offset: 0x00219159
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetLineupNameScRsp.Descriptor;
			}
		}

		// Token: 0x0600C7EB RID: 51179 RVA: 0x0021AF60 File Offset: 0x00219160
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetLineupNameScRsp()
		{
		}

		// Token: 0x0600C7EC RID: 51180 RVA: 0x0021AF73 File Offset: 0x00219173
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetLineupNameScRsp(SetLineupNameScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.index_ = other.index_;
			this.name_ = other.name_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C7ED RID: 51181 RVA: 0x0021AFB0 File Offset: 0x002191B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetLineupNameScRsp Clone()
		{
			return new SetLineupNameScRsp(this);
		}

		// Token: 0x17003885 RID: 14469
		// (get) Token: 0x0600C7EE RID: 51182 RVA: 0x0021AFB8 File Offset: 0x002191B8
		// (set) Token: 0x0600C7EF RID: 51183 RVA: 0x0021AFC0 File Offset: 0x002191C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003886 RID: 14470
		// (get) Token: 0x0600C7F0 RID: 51184 RVA: 0x0021AFC9 File Offset: 0x002191C9
		// (set) Token: 0x0600C7F1 RID: 51185 RVA: 0x0021AFD1 File Offset: 0x002191D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Index
		{
			get
			{
				return this.index_;
			}
			set
			{
				this.index_ = value;
			}
		}

		// Token: 0x17003887 RID: 14471
		// (get) Token: 0x0600C7F2 RID: 51186 RVA: 0x0021AFDA File Offset: 0x002191DA
		// (set) Token: 0x0600C7F3 RID: 51187 RVA: 0x0021AFE2 File Offset: 0x002191E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Name
		{
			get
			{
				return this.name_;
			}
			set
			{
				this.name_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x0600C7F4 RID: 51188 RVA: 0x0021AFF5 File Offset: 0x002191F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetLineupNameScRsp);
		}

		// Token: 0x0600C7F5 RID: 51189 RVA: 0x0021B004 File Offset: 0x00219204
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetLineupNameScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.Index == other.Index && !(this.Name != other.Name) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C7F6 RID: 51190 RVA: 0x0021B064 File Offset: 0x00219264
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.Index != 0U)
			{
				num ^= this.Index.GetHashCode();
			}
			if (this.Name.Length != 0)
			{
				num ^= this.Name.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C7F7 RID: 51191 RVA: 0x0021B0D7 File Offset: 0x002192D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C7F8 RID: 51192 RVA: 0x0021B0DF File Offset: 0x002192DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C7F9 RID: 51193 RVA: 0x0021B0E8 File Offset: 0x002192E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Name.Length != 0)
			{
				output.WriteRawTag(26);
				output.WriteString(this.Name);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this.Index != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Index);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C7FA RID: 51194 RVA: 0x0021B164 File Offset: 0x00219364
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.Index != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Index);
			}
			if (this.Name.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Name);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C7FB RID: 51195 RVA: 0x0021B1D8 File Offset: 0x002193D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetLineupNameScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.Index != 0U)
			{
				this.Index = other.Index;
			}
			if (other.Name.Length != 0)
			{
				this.Name = other.Name;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C7FC RID: 51196 RVA: 0x0021B241 File Offset: 0x00219441
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C7FD RID: 51197 RVA: 0x0021B24C File Offset: 0x0021944C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 26U)
				{
					if (num != 56U)
					{
						if (num != 80U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Index = input.ReadUInt32();
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.Name = input.ReadString();
				}
			}
		}

		// Token: 0x0400504B RID: 20555
		private static readonly MessageParser<SetLineupNameScRsp> _parser = new MessageParser<SetLineupNameScRsp>(() => new SetLineupNameScRsp());

		// Token: 0x0400504C RID: 20556
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400504D RID: 20557
		public const int RetcodeFieldNumber = 7;

		// Token: 0x0400504E RID: 20558
		private uint retcode_;

		// Token: 0x0400504F RID: 20559
		public const int IndexFieldNumber = 10;

		// Token: 0x04005050 RID: 20560
		private uint index_;

		// Token: 0x04005051 RID: 20561
		public const int NameFieldNumber = 3;

		// Token: 0x04005052 RID: 20562
		private string name_ = "";
	}
}
